package consts

const (
	TableAttributeField string = "field"
	TableAttributeTag   string = "tag"

	TableCustomFiledLen int = -1
	TableNoFiledLen     int = -2
)

var TableFiledDefaultLen = map[string]int{
	"TIMESTAMP":        8,
	"INT":              4,
	"INTUNSIGNED":      4,
	"BIGINT":           8,
	"BIGINTUNSIGNED":   8,
	"FLOAT":            4,
	"DOUBLE":           8,
	"BINARY":           -1,
	"SMALLINT":         2,
	"SMALLINTUNSIGNED": 2,
	"TINYINT":          1,
	"TINYINTUNSIGNED":  1,
	"BOOL":             1,
	"NCHAR":            -1,
	"JSON":             -2,
	"VARCHAR":          -1,
	"GEOMETRY":         -1,
	"VARBINARY":        -1,
}
